package com.wushi.lenovo.asia5b.app_ui.good.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wushi.lenovo.asia5b.R;
import com.wushi.lenovo.asia5b.app_model.good.ThridMallModel;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/3/16.
 */
public class ThirdMallAdapter extends BaseQuickAdapter<ThridMallModel, BaseViewHolder> {
    public ThirdMallAdapter(@Nullable List<ThridMallModel> data) {
        super(R.layout.item_thirdmall_adapter, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ThridMallModel item) {
        ImageView imageView = helper.getView(R.id.iv_thirdmall_img);
        imageView.setImageResource(item.getImgRes());
    }
}
